<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style> 
div
{
border:2px solid #a1a1a1;
padding:10px 40px; 
background:#dddddd;
width:300px;
border-radius:25px;
margin: auto;

}
</style>
</head>
<body>

<div align="center">
<jsp:include page="Welcome.jsp"/>

<table>
<tr><td bgcolor="#33CCCC">Amount Due: </td><td bgcolor="#33CCCC">$<c:out value="${sessionScope.invoice.bill_amount }"/></td><tr>
<tr><td bgcolor="#33CCCC">Bill Due Date: </td><td bgcolor="#33CCCC"><c:out value="${sessionScope.invoice.due_date }"/></td></tr>
<tr><td bgcolor="#33CCCC">Products:</td></tr>
<tr><td bgcolor="#33CCCC">Product Type</td><td bgcolor="#33CCCC">Description</td><td bgcolor="#33CCCC">Cost</td></tr>

<c:forEach var="prod" items="${sessionScope.products}">

<tr><td bgcolor="#33CCCC">${prod.product_type=='INT'?'Internet':prod.product_type}</td> 
<td bgcolor="#33CCCC">${prod.description}</td><td bgcolor="#33CCCC">${prod.cost}</td>

</c:forEach>
</table>
<html:form action="customer_home.do" method="post">
<c:if test="${not empty sessionScope.products }">
	<html:submit value="Cancel" property="submit"/>
	</c:if>
	<html:submit value="Upgrade" property="submit"/>
	<html:submit value="Billing" property="submit"/>
</html:form>
</div>
</body>
</html>